681dc8d2d6a34d128eeb9782859efbd053eb59a2,sample/src/test/java/sample/SecurityTests.java,SecurityTests,basicMissingUser401,#,107
Before Change
@Test
public void basicMissingUser401() throws Exception {
ExchangeFunction client = basicAuthentication("missing-user", "password")
.apply(this.webClient::exchange);
Mono<HttpStatus> response = client
.exchange(adminRequest().build())
.then(this::httpStatus);
After Change
@Test
public void basicMissingUser401() throws Exception {
Mono<HttpStatus> response = this.webClient
.filter(basicAuthentication("missing-user", "password"))
.exchange(adminRequest().build())
.then(this::httpStatus);
assertThat(response.block(ONE_SECOND)).isEqualTo(HttpStatus.UNAUTHORIZED);